package com.yanqu.road.entity.giftKey;

import java.util.List;

public class GiftKeyInfo {

    private String exchangeCode;

    private int configId;//兑换码类别标示

    private int codeType;//1通用无数次2动态码只能用一次

    private List<Integer> channelIdList;

    private List<Long> serverIdList;

    private long startTime;

    private long endTime;

    private String reward;

    private int maxLimit;//每个人可以用这个类型几次

    private int useTimes;

    //2动态码每个人能使用次数
    private int receiveNum;

    private boolean isEnable;

    private String appId = "";

    private int playType; // 0 无效果 1红包雨 2滑红包

    private String slideSettings = "";

    public String getExchangeCode() {
        return exchangeCode;
    }

    public void setExchangeCode(String exchangeCode) {
        this.exchangeCode = exchangeCode;
    }

    public int getConfigId() {
        return configId;
    }

    public void setConfigId(int configId) {
        this.configId = configId;
    }

    public int getCodeType() {
        return codeType;
    }

    public void setCodeType(int codeType) {
        this.codeType = codeType;
    }

    public List<Integer> getChannelIdList() {
        return channelIdList;
    }

    public boolean isChannelIdIn(int channelId){
        if(channelIdList.contains(0)){
            return true;
        }
        return channelIdList.contains(channelId);
    }

    public void setChannelIdList(List<Integer> channelIdList) {
        this.channelIdList = channelIdList;
    }

    public List<Long> getServerIdList() {
        return serverIdList;
    }

    public boolean isServerIdIn(long serverId){
        if(serverIdList.contains(0L)){
            return true;
        }
        return serverIdList.contains(serverId);
    }

    public void setServerIdList(List<Long> serverIdList) {
        this.serverIdList = serverIdList;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public int getMaxLimit() {
        return maxLimit;
    }

    public void setMaxLimit(int maxLimit) {
        this.maxLimit = maxLimit;
    }

    public int getUseTimes() {
        return useTimes;
    }

    public void setUseTimes(int useTimes) {
        this.useTimes = useTimes;
    }

    public int getReceiveNum() {
        return receiveNum;
    }

    public void setReceiveNum(int receiveNum) {
        this.receiveNum = receiveNum;
    }

    public boolean isEnable() {
        return isEnable;
    }

    public void setEnable(boolean enable) {
        isEnable = enable;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public int getPlayType() {
        return playType;
    }

    public void setPlayType(int playType) {
        this.playType = playType;
    }

    public String getSlideSettings() {
        return slideSettings;
    }

    public void setSlideSettings(String slideSettings) {
        this.slideSettings = slideSettings;
    }
}
